# index的urls.py
from django.urls import path, re_path
from . import views

app_name = 'index'
urlpatterns = [
    path('', views.index, name='index'),
    path('tpl', views.tpl, name='index'),
    path('news', views.news, name='index'),
    path('something', views.something, name='index'),
    re_path('(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2}).html', views.mydate),
    path('<year>/<int:month>/<slug:day>', views.mydate, name='mydate'),

    # 用户登陆
    path('login/', views.login, name='index'),
    path('stock/', views.stock, name='index'),
    path('calulator/', views.calulator, name='index'),
    path('branchhelper/', views.branchhelper, name='index'),
]
